package com.example.learnnacos;

import com.example.myac.MyAcService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service;

@Service
@Slf4j
public class MyTask {

    @Autowired
    private MyAcService myAcService;

//    @Scheduled(fixedRate = 5000)
    public void showSay() {
        log.info("MyAcService: {}", myAcService.say());
    }
}
